package com.aurora;

import lombok.extern.log4j.Log4j2;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.data.neo4j.repository.config.EnableNeo4jRepositories;
import org.springframework.web.client.RestTemplate;

@Log4j2
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@EnableNeo4jRepositories(basePackages ="com.aurora.neo4j")
@EntityScan(basePackages = "com.aurora")
public class AuroraSpringbootApplication {

    public static Logger logger = LoggerFactory.getLogger(AuroraSpringbootApplication.class);
    public static void main(String[] args) {

        SpringApplication.run(AuroraSpringbootApplication.class, args);
    }

    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }

}
